Skip to content

fix(cli): disclose incomplete search coverage and pin beta setup - #165

Merged
PatrickSys merged 3 commits into
masterfrom
fix/stranger-frictions-20261107
Dec 4, 2026
Merged

PatrickSys merged 3 commits into
masterfrom
fix/stranger-frictions-20261107

Conversation

@PatrickSys

Copy link
Copy Markdown
Owner

Human search output hid when source inspection stopped early, and Codex setup help could select the stable package instead of the beta. This change shows checked and skipped file counts with early-stop guidance, and makes the README, --help and init --help use codebase-context@2.3.1-beta.0 explicitly.

Validation: all 61 CLI tests pass. The build, changed-source ESLint, source formatting check and replay of a recorded search response pass. npm currently lists beta 2.3.1-beta.0 and stable 2.2.0.

The seven original freshness-test timeouts did not reproduce: all seven pass on both this patch and the unchanged base at the original 15-second limit, and in separate 60-second diagnostic runs, all serial. The pre-push full suite then reported 1,449 passes, 13 timeouts and two skips. All 13 failed cases pass in a single isolated serial check at their unchanged original limits. The timeout cause remains unproven. These checks do not establish a green full-suite result.

@PatrickSys

Copy link
Copy Markdown
Owner Author

Fixed both review items.

  • --help and init --help pin the Codex setup command to the running package version. Stable builds show Codex setup line.
  • The current-coverage test now checks that both warning strings are absent after normalizing the box output. Removing the coverage guard made it fail.

The full suite passed with 1,541 tests passed and 2 skipped.

@PatrickSys
PatrickSys marked this pull request as ready for review December 4, 2026 08:01
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T08:03:06.431234Z af76eaf Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5RetriggerView in Greptile

[Low impact] The changes reach CLI search output and Codex setup guidance.

Fix the Codex setup version before merging; both help commands currently select a different version from the documented beta.

Findings

  1. P1 Setup selects the wrong version ▶

Summary

Adds incomplete-source warnings to human search output and shares the package-version reader across the CLI and server.

  • Human-readable searches now show when source coverage is incomplete.
  • Codex help and manual instructions now pin the package version.

Reviews (1) · Last reviewed commit: "fix(cli): use the running version in Cod..." · Reviewed by Greptile

Comment thread src/cli-init.ts
export const CODEX_SETUP_LABEL = isPrerelease
? 'Codex prerelease setup line:'
: 'Codex setup line:';
export const CODEX_SETUP_COMMAND = `codex mcp add codebase-context -- npx -y codebase-context@${PKG_VERSION}`;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Setup selects the wrong version

CODEX_SETUP_COMMAND reads 2.3.0 from package.json, so both help commands print codebase-context@2.3.0, not the promised codebase-context@2.3.1-beta.0. Users copying that command do not select the documented beta. Use an explicit published-beta version for this recipe, and test against that version rather than reading the same manifest value.

Agent-Harness: codex
Agent-Session: 01a23fe6-afbb-7731-8840-9dcf12347cb3
@PatrickSys
PatrickSys force-pushed the fix/stranger-frictions-20261107 branch from af76eaf to 0b09436 Compare December 4, 2026 08:34
@PatrickSys
PatrickSys merged commit 3c2dcbd into master Dec 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant